//
//  PTCoreObject+LifeService.h
//  PlanTech
//
//  Created by ruifeng song on 2018/7/16.
//  Copyright © 2018年  androidlongs. All rights reserved.
//

#import "PTCoreObject.h"
#import "PTMObject.h"
#import "PTCoreDefine.h"

//全部发布列表
@interface LifeServiceListModel : PTMObject<IPTMObject>

@property(nonatomic,strong)NSNumber * reward;              //报酬
@property(nonatomic,copy)NSString * destinationAddress; // 取货目的地详细地址
@property(nonatomic,copy)NSString * userAvatar;         //用户头像
@property(nonatomic,copy)NSString * remark;             //备注
@property(nonatomic,copy)NSString * purchaseCat;        //代购方式
@property(nonatomic,copy)NSString * userName;           //发布者姓名
@property(nonatomic,copy)NSString * userPhone;          // 收件人电话
@property(nonatomic,strong)NSNumber * type;              //类型 （8 快递，9 打印复印，10 捎饭带饭，11 超市代购）
@property(nonatomic,copy)NSString * userAddress;        //用户收货地址
@property(nonatomic,strong)NSNumber * createTime;         //创建时间
@property(nonatomic,copy)NSString * destinationName;    // 目的地名称（快递点名称）
@property(nonatomic,strong)NSNumber * userGender;        //用户性别(1男，2女)
@property(nonatomic,strong)NSNumber * startTime;          //开始时间
@property(nonatomic,copy)NSString * userUUID;           //用户uuid
@property(nonatomic,strong)NSNumber * endTime;            //结束时间
@property(nonatomic,copy)NSString * expressCat;         //快递类型
@property(nonatomic,copy)NSString * serviceUUID;        //生活服务的uuid
@property(nonatomic,copy)NSString * finishTime;         // 完成时间 （未完成不返回此字段）
@property(nonatomic,strong)NSNumber * status;            //生活服务的状态  0 正常 1 取消发布（可重新发布） 2 删除 3 已委托（已接单） 4 完成 5 已评价 6 待处理（举报对方）
@property (nonatomic,strong)NSNumber * copies;          //打印份数
@property (nonatomic,copy)NSString * accessCode;       //提取码
@property(nonatomic,strong)NSNumber * userAvgRating;   //自己的平均评分

@end

//我的兼职列表
@class MyMissionsEmployerModel;
@interface LifeServiceMyMissionsModel:LifeServiceListModel

@property(nonatomic,strong)NSNumber *rating;    // 评分
@property(nonatomic,copy)NSString *uuid;
@property(nonatomic,strong)MyMissionsEmployerModel *employer;
@property(nonatomic,copy)NSString *employerAddress;


@end

//我发布的列表
@class LSDetailReceiverModel;
@interface LifeServiceMyListModel:LifeServiceListModel

@property(nonatomic,copy)NSString * missionUUID;   // 承接者承接记录uuid
@property(nonatomic,strong)NSNumber * rating;      //评分
@property(nonatomic,strong)LSDetailReceiverModel * receiver;  //接受者信息

@end

@class LSDetailReceiverModel;   //需求详情
@interface LifeServiceListDetailModel:LifeServiceMyListModel

@end


//兼职详情
@interface LifeServiceMissionDetailModel:LifeServiceMyMissionsModel

@end


//接受者信息（同提货码【只有自己发布的或者自己接单的数据才展示】）
@interface LSDetailReceiverModel:PTMObject<IPTMObject>

@property(nonatomic,strong)NSNumber * gender;   //性别
@property(nonatomic,copy)NSString *phone;       //电话
@property(nonatomic,copy)NSString *name;        //名字
@property(nonatomic,copy)NSString *avatar;      //头像
@property(nonatomic,copy)NSString *uuid;        //用户id
@property(nonatomic,strong)NSNumber * avgRating;   //平均评分

@end

@interface MyMissionsEmployerModel:LSDetailReceiverModel

@end
